package com.example.demo;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;

import com.example.demo.filters.GatewayContextGatewayFilterFactory;
import com.example.demo.filters.RequestLogGatewayFilterFactory;
import com.example.demo.filters.ResponseLogGatewayFilterFactory;

@SpringBootApplication
public class DemoApplication {

    public static void main(String[] args) {
        SpringApplication.run(DemoApplication.class, args);
    }


    @Bean
    public GatewayContextGatewayFilterFactory gatewayContextGatewayFilter() {
        return new GatewayContextGatewayFilterFactory();
    }

    @Bean
    public RequestLogGatewayFilterFactory requestLogGatewayFilterFactory() {
        return new RequestLogGatewayFilterFactory();
    }

    @Bean
    public ResponseLogGatewayFilterFactory responseLogGatewayFilterFactory() {
        return new ResponseLogGatewayFilterFactory();
    }


}
